package com.fxStarter;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

import java.io.IOException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * @Author: Redi
 * @Date: 2021/8/31 17:02
 * @Description:
 */
public class MainWindow extends BorderPane {

    public MainWindow() {
        try{
            Parent fxmlNode = FXMLLoader.load(this.getClass().getResource("MainWindow.fxml"));
            this.setCenter(fxmlNode);
        } catch (IOException exception) {
            Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, "error", exception);
        }
    }

}
